<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>列出每个帖子</title>
<style type="text/css">
	
	table {
		border: 1px solid black;
		border-collapse: collapse;
		width: 100%;
	}

	table td {
		border: 1px solid black;
	
	}
</style>
</head>
<body>

	
	<table>
		<tr align="center">
			<td>id</td>
			<td>类型</td>
			<td>发布时间</td>
			<td>标题</td>
			<td>发布者</td>
			<td>操作</td>
		</tr>
		<c:forEach var="itel" items="${intels}">
			<tr>
				<td>${itel.id}</td>
				<td>${itel.type}</td>
				<td>${itel.ptime}</td>
				<td>${itel.tittle}</td>
				<td>${itel.user.name}</td>
				<td>
					<a href="${pageContext.request.contextPath}/UserServlet/queryOneIntel?id=${itel.id}">查看</a>
				</td>
			</tr>
		</c:forEach>
	
	
	</table>


</body>
</html>